package my.tutorial.javacore.test.analytic;
/**
 * Java Test 7. Bonus
 */
public class BooleanTrick {

	public String trick(Boolean input) {
		try {
			if (input) {
				return "a";
			} else {
				return "b";
			}
		} catch (Exception e) {
			return "c";
		}
	}
	
	public static void main(String[] args) {
		BooleanTrick bonus = new BooleanTrick();
		System.out.println(bonus.trick(true));
		System.out.println(bonus.trick(false));
		System.out.println(bonus.trick(null));
	}
}
